var app=getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
     titleArray:{
       type:Array,
       value: [{
         id:100,
         name:'教案'
       }]
     }
  },

  /**
   * 组件的初始数据
   */
  data: {
   screenHeight:100
  }, 
 
  attached: function (e) {
    var that = this
    wx.getSystemInfo({
      success: function (res) {
        
        var height=res.screenHeight
        that.setData({
          screenHeight: height - 110
        })
       // console.log(that.data.screenHeight)
      },
    })

  },
  /**
   * 组件的方法列表
   */
  methods: {
    returnId: function (event) {
       console.log(event)
       this.triggerEvent('getId',{id:event.currentTarget.dataset.id})
    },
  }
})
